import yup from './yup'

import { all } from '@vee-validate/rules'
import * as veeValidate from 'vee-validate'

//指定设置useField
const useFields = (fields: string[]) => {
  fields.forEach((field) => veeValidate.useField(field))
}

export default { all, yup, ...veeValidate, useFields }
